# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libcontentaction
pkgver=0.4.3
pkgrel=1
pkgdesc="Library for associating content with actions"
arch=('loong64' 'x86_64')
url="https://github.com/sailfishos/libcontentaction"
license=('LGPL')
depends=('qt5-systems' 'mlite')
makedepends=('python' 'qt5-tools')
source=("https://github.com/sailfishos/libcontentaction/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('63a95b89b2c0a295b61c376bbcd623978149fb310eff1b2ff574439fe726c342e970530cfe049b687217a88437c9e116f84596525580a3575e31a32bd733c308')

build() {
  cd libcontentaction-$pkgver

  qmake-qt5
  make
}

package() {
  cd libcontentaction-$pkgver

  make INSTALL_ROOT="$pkgdir" install

  # Remove tests
  rm -r "$pkgdir/opt"
}
